/*
 * This class make a list contains names of all files in a directory. 
 */
package cth.tda367.beavers.glossaryGame.IO;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class FileFinder {
	
	String directory = "c:/Glossary/" ;
	List<String> languagefilesName;
	
	public FileFinder(String directory) {
		
		this.directory = directory;
		
		languagefilesName = new ArrayList<String>();
		File folder = new File(directory);
		File[] filesArray = folder.listFiles();
		
		for(File file : filesArray){	
			if (file.isFile()){
				languagefilesName.add(file.getName());
			} 
		}
		
		
	}


	public List<String> getlanguagefilesName(){
		return languagefilesName;
	}
	
}
